<script>
	export default {
		// onLaunch: function() {
		// 	console.log('App Launch');
		// 	if (!localStorage.getItem('token')) {
		// 		uni.navigateTo({
		// 			url: '/pages/index/index'
		// 		});
		// 	}
		// },
		onShow: function() {
			console.log('App Show');
			
			var _hmt = _hmt || [];
			(function() {
			  var hm = document.createElement("script");
			  hm.src = "https://hm.baidu.com/hm.js?12cf3eceb9717e98fb23c933850b3e2f";
			  var s = document.getElementsByTagName("script")[0]; 
			  s.parentNode.insertBefore(hm, s);
			})();
		},
		onHide: function() {
			console.log('App Hide');
		}
	};

</script>

<style>
	/*每个页面公共css */
	.flex {
		display: flex;
	}

	.flex-row {
		flex-direction: row;
	}

	.flex-col {
		flex-direction: column;
	}

	.flex-wrap {
		flex-wrap: wrap;
	}

	.flex-1 {
		flex: 1;
	}

	.justify-center {
		justify-content: center;
	}

	.justify-start {
		justify-content: flex-start;
	}

	.justify-end {
		justify-content: flex-end;
	}

	.justify-between {
		justify-content: space-between;
	}

	.justify-evenly {
		justify-content: space-evenly;
	}

	.justify-around {
		justify-content: space-around;
	}

	.items-center {
		align-items: center;
	}

	.items-start {
		align-items: flex-start;
	}

	.items-end {
		align-items: flex-end;
	}
</style>
